package cn.mafangui.hotel.controller.user;

import cn.mafangui.hotel.entity.Activity;
import cn.mafangui.hotel.response.AjaxResult;
import cn.mafangui.hotel.response.ResponseTool;
import cn.mafangui.hotel.service.ActivityService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: kalpa
 * @date: 2022/4/3
 * @version: 1.0
 * Description: No Description
 */
@Api( tags = {"用户-活动管理"})
@RestController
@RequestMapping(value = "/user/activity")
public class UserActivityController {
    @Autowired
    ActivityService activityService;

    @GetMapping(value = "/getAll")
    public AjaxResult getAll(){
        return ResponseTool.success(activityService.getAllActivity());
    }
}
